from django.core.mail import send_mail
from drf_movie_rimi.settings import EMAIL_HOST_USER


def my_send_mail(title, context, to_mail):
    # 三个参数为 发送标题 内容 收件人
    res = send_mail(title, context, EMAIL_HOST_USER,
                    [to_mail])

    return bool(res)
